package org.linlinjava.litemall.wx.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description: 商品详情VO
 * @author: Destin
 * @date: 2021-10-12
 */
@Data
public class GoodsDetailVo {

    @ApiModelProperty("商品id")
    private Integer id;

    @ApiModelProperty("商品宣传图片多个")
    private String[] gallery;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("分类名称")
    private String categoryName;

    @ApiModelProperty("商品简介")
    private String brief;

    @ApiModelProperty("商品价格")
    private BigDecimal price;

    @ApiModelProperty("秒杀价格")
    private BigDecimal killPrice;

    @ApiModelProperty("是否秒杀商品")
    private Boolean isKill = false;

    @ApiModelProperty("秒杀开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty("秒杀结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty("商品销售数量")
    private Integer saleNum = 0;

    @ApiModelProperty("推荐商品图片多个")
    private String[] recommend;

    private List<RecommendVo> recommendVos;

    @ApiModelProperty("商品详情页图片")
    private String detailUrl;
}
